package gui.eventos;

import java.util.EventObject;

@SuppressWarnings("serial")
public class TaskActionEvent extends EventObject {

	public static final int NUEVA_INCIDENCIA = 1;
	public static final int ELIMINAR_INCIDENCIA = 2;
	public static final int GENERAR_INFORME = 3;
	public static final int TAREA_SELECCIONADA = 4;
	public static final int NUEVO_PROYECTO = 5;
	public static final int CAMBIAR_ESTADO = 6;

	private int action;
	private Object value = null;
	private Object secondary = null;

	public TaskActionEvent(Object object, int action, Object value) {
		this(object, action, value, null);
	}

	public TaskActionEvent(Object object, int action, Object value, Object secondary) {
		super(object);
		this.action = action;
		this.value = value;
		this.secondary = secondary;
	}

	public int getAction() {
		return action;
	}

	public Object getValue() {
		return value;
	}
	
	public Object getSecondaryValue() {
		return secondary;
	}
}
